<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Template
{
	var $_template = '';
	private $_ci;
	
	function __construct($params=array('template' => ''))
	{
		$this->_template = $params['template'];
		$this->_ci =& get_instance();
	}
	function render_single($view=null,$data=null)
	{
		$this->_ci->load->view($this->_template.'/'.$view,$data);
	}
	function get_view($view=null,$data=null)
	{
		return $this->_ci->load->view($this->_template.'/'.$view,$data,true);
	}
}